package com.ibp.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ibp.entity.NodeMgr;
import com.ibp.service.FSHttpService;
import com.ibp.service.NodeHostMgrService;
import com.ibp.utils.PropertyUtils;

@Service("nodeHostMgrServiceImpl")
public class NodeHostMgrServiceImpl implements NodeHostMgrService, InitializingBean{

	private static Logger logger = LoggerFactory.getLogger(NodeHostMgrServiceImpl.class);
	
	@Autowired
	PropertyUtils propertyUtils;
	
	@Autowired
	FSHttpService fSHttpService;
	
	String ibms_ip = null;
	String ibms_port = null;
	String url = null;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		this.ibms_ip = this.propertyUtils.properties
				.getProperty("http.ibms.ip");
		this.ibms_port = this.propertyUtils.properties
				.getProperty("http.ibms.port");
		this.url = ("http://" + this.ibms_ip + ":" + this.ibms_port + "/");
		
	}

	@Override
	public List<NodeMgr> getNodeList(NodeMgr filter) {
		
		return null;
	}

	@Override
	public void deleteNode(NodeMgr node) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void addNode(NodeMgr node) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateNode(NodeMgr node) {
		// TODO Auto-generated method stub
		
	}

}
